<template>
<a-modal
      title="批量申请"
      :visible="abnormalityApplyVisible"
      @ok="handleSave"
      @cancel="handleClose"
    >
      <a-form :form="form">
            <div>
            <a-form-item label="申请备注">
              <a-textarea placeholder="请输入..." :rows="4"  v-decorator="['ssbz',{ rules: [{ required: true, message: '请输入备注' }] }]"  />
            </a-form-item>
            </div>
      </a-form>
    </a-modal>
</template>

<script>
// import moment from 'moment'

export default {
  props: {
    abnormalityApplyVisible: {
      default: false
    },
    selectedIds:''
  },
  data () {
    return {
      postParams: {
        lqzt: '',
        sm: ''
      }
    }
  },
   beforeCreate () {
    this.form = this.$form.createForm(this)
  },
  created () {
  },
  methods: {
    handleSave () {
      this.form.validateFields( (err,values) => {
					if(err){
					this.$message.error("请选择必填项")
					}else{
      var postParams = this.selectedIds+"/"+this.form.getFieldsValue().ssbz
      this.$api.recruitstat.reExamBreakMangageMulCheck(postParams).then( res => {
        this.$message.success('批量申请成功')
        // this.postParams.ssbz = ''
          this.form.resetFields()
        this.$emit('success')
      })
          }
      })
    },
    handleClose () {
      this.$emit('close')
    }
  }
}
</script>
